import React from "react";
import classnames from "classnames";
import "./index.less";
import home from "@/img/icon/home.png";
import {NavBar,CopyBtn} from '@/ui'

export default function Page() {
  const cls = classnames("m-react-page-copy-btn");
  return (
    <div className={cls}>
      <NavBar title="CopyBtn" />
      <CopyBtn str="123456" toastInfo="复制成功" />
      <CopyBtn str="123789456" text="自定义文本" />
      <div>
        <CopyBtn
          str="customBtn"
          toastInfo="我是自定义的"
          customBtn={<img src={home} width={50} />}
        />
      </div>
    </div>
  );
}
